package com.nuc.ocp2;

/**
 * Time    : 2023/3/24 17:48
 * Author  : 王摇摆
 * FileName: CountHighExercise.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class CountHighExercise extends HighExercise {

    public CountHighExercise(Double price, String name) {
        super(price, name);
    }

    @Override
    public Double getPrice() {
        return super.getPrice() * 0.85;
    }
}
